file(GLOB_RECURSE src_files "*.h" "*.cpp")

include_directories("${CMAKE_SOURCE_DIR}/third/glad_wrapper/glad/include")
include_directories("${CMAKE_SOURCE_DIR}/third/stb_image_wrapper")

add_definitions(-DMY_RESOURCE_DIR="${CMAKE_SOURCE_DIR}/resource")
add_definitions(-DMY_SHADER_DIR="${CMAKE_SOURCE_DIR}/shader")

add_executable(gldemo ${src_files})

source_group(TREE ".." FILES ${src_files})

target_link_libraries(gldemo glfw glad)

